function printdean(filename);

[tmp filename] = fileparts(filename);
set(gcf, 'renderer', 'painter', 'paperpositionmode', 'auto');
print('-djpeg', [ filename '.jpg'])
print('-depsc', [ filename '.eps'])
